package rentel.logbook.car;

import rentel.logbook.persistence.CarDB;
import rentel.logbook.persistence.IRowBuilder;

public class Car implements IRowBuilder {

	private String name;

	public Car() {
		// NOP
	}
	
	public Car(String name) {
		super();
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "Car [name=" + name + "]";
	}
	
	public Object buildRow() {
		return new CarDB(name);
	}
}
